﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BrokerBase.Lib.Core
{
    public class Item:IItem
    {
        private string name;

        private string number;

        private string description;
        
        public virtual event PropertyChangedEventHandler PropertyChanged;

        public virtual void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public virtual string Number
        {
            get { return number; }
            set
            {
                this.number = value;
                NotifyPropertyChanged("Number");
            }
        }

        public virtual string Name
        {
            get { return name; }
            set
            {
                this.name = value;
                NotifyPropertyChanged("Name");
            }
        }

        public virtual string Description
        {
            get { return description; }
            set
            {
                this.description = value;
                NotifyPropertyChanged("Description");
            }
        }

        public virtual DateTime? CreateTime { get; set; }

        public virtual DateTime? ModifyTime { get; set; }


    }
}
